package com.yuanlrc.hotel.room.domain;

import com.yuanlrc.common.annotation.Excel;
import com.yuanlrc.common.annotation.Excels;
import com.yuanlrc.common.core.domain.BaseEntity;
import com.yuanlrc.hotel.rommType.domain.RoomType;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 房间管理对象 ylrc_room
 * 
 * @author yuanlrc
 * @date 2020-11-19
 */
public class Room extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static long NORMAL = 0L; //不可用

    public static  long ACTIVE = 1L; //可用

    public static Integer TimeLimit = 0; //钟点房

    public static Integer NOT_TimeLimit = 1; //不是钟点房


    /** null */
    private Integer id;

    /** null */
    @Excel(name = "null")
    private Integer roomTypeId;

    /** 可住人数 */
    @Excel(name = "可住人数")
    private Long count;

    /** 床位数 */
    @Excel(name = "床位数")
    private Integer bedCount;

    /** 房间状态 */
    @Excel(name = "房间状态")
    private Long status;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 房间介绍 */
    @Excel(name = "房间介绍")
    private String content;

    /** 评分 */
    @Excel(name = "评分")
    private Double rate;

    /** 图片 */
    @Excel(name = "图片")
    private String headpic;

    /** 是否是钟点房 */
    @Excel(name = "是否是钟点房")
    private Integer isTimeLimit;

    RoomType roomType;

    public RoomType getRoomType() {
        return roomType;
    }

    public void setRoomType(RoomType roomType) {
        this.roomType = roomType;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setRoomTypeId(Integer roomTypeId) 
    {
        this.roomTypeId = roomTypeId;
    }

    public Integer getRoomTypeId() 
    {
        return roomTypeId;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setBedCount(Integer bedCount) 
    {
        this.bedCount = bedCount;
    }

    public Integer getBedCount() 
    {
        return bedCount;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setRate(Double rate) 
    {
        this.rate = rate;
    }

    public Double getRate() 
    {
        return rate;
    }
    public void setHeadpic(String headpic) 
    {
        this.headpic = headpic;
    }

    public String getHeadpic() 
    {
        return headpic;
    }
    public void setIsTimeLimit(Integer isTimeLimit) 
    {
        this.isTimeLimit = isTimeLimit;
    }

    public Integer getIsTimeLimit() 
    {
        return isTimeLimit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomTypeId", getRoomTypeId())
            .append("count", getCount())
            .append("bedCount", getBedCount())
            .append("status", getStatus())
            .append("roomNumber", getRoomNumber())
            .append("price", getPrice())
            .append("content", getContent())
            .append("rate", getRate())
            .append("headpic", getHeadpic())
            .append("isTimeLimit", getIsTimeLimit())
            .toString();
    }
}
